home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4900 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Incompatibility between BC4.5 32 bit DLL and MSVC 2.0 exe
  5. Date: 1 Feb 1996 15:13:15 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4eqlab$had@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe3.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. On Feb 01, 1996 08:49:50 in article <Incompatibility between BC4.5 32 bit
  15. DLL and MSVC 2.0 exe>, 'Planmeca Oy <fipdt4d9@ibmmail.com>' wrote: 
  16.  
  17.  
  18. >We have a "minor" problem. Part of our development team is developing  
  19. >(32 bit) DLL:s with BC4.5 c++. Another part is developing the application 
  20.  
  21. >which needs to use that DLL. While trying to build the executable with  
  22. >the LIB generated by BC for that DLL, MSVC complains: invalid or  
  23. >corrupted library file. 
  24. >We use C (not C++) interface between the EXE and the DLL. 
  25. Right, the library formats are different.  COFF vs. OMF or something 
  26. like that.   
  27.  
  28. There are instructions on how to create an import library from a  
  29. "foreign" DLL on the MSKB Forum on Compuserve.  I don't 
  30. have the number but you can search for it by subject. 
  31.  
  32. >The same approach works with 16 bit EXE and 16 bit DLL. Is there anything 
  33.  
  34. >to do? 
  35. This surprises me.  I thought the library formats were different on 
  36. 16-bit systems as well.  Did you actually link the BC-produced 
  37. lib file into an MSVC++ product?  Maybe you used a module 
  38. definition (.def) file instead? 
  39.  
  40. BTW, as you are probably already aware, using a .def file to 
  41. import DLL functions is not an option with MSVC++4.0.  
  42. -- 
  43. Pete Grant 
  44. Kalevi, Inc. 
  45. Object Oriented Software Development
  46.